package add__2_basalsyntax;

import java.util.Scanner;

/*

hasNext()和hasNextLine()都是需要按回车键才能提交，初步总结：毫无区别


 */
public class Scanner3 {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        // 输入a b c d
        /*
        while (scan.hasNext()) {
            String str = scan.next();
            System.out.println(str);
        }
        */
        /*
        while (scan.hasNextLine()) {
            String str = scan.next();
            System.out.println(str);
        }
        */
        /*
        while (scan.hasNext()) {
            String str = scan.nextLine();
            System.out.println(str);
        }
        */
        while (scan.hasNextLine()) {
            String str = scan.nextLine();
            System.out.println(str);
        }
    }

}
